﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WI_E2_Parser
{
    class Term
    {
        public string termName = "";
        public List<KeyValuePair<int, int>> frequency = new List<KeyValuePair<int, int>>();

        public Term(string termName, int pageID, int termCount) {
            this.termName = termName;
            addPageToTerm(pageID, termCount);
        }

        public void addPageToTerm(int pageID, int termCount) {
            this.frequency.Add(new KeyValuePair<int, int>(pageID, termCount));
        }
    }
}
